<?php

namespace App\Helper;

use App\Model\Config;
use Hyperf\Di\Annotation\Inject;
use Hyperf\Support\Traits\StaticInstance;

class DbConfigHelper
{

    use StaticInstance;

    #[Inject]
    protected Config $config;

    public function getValue(string $label): ?string
    {
        return $this->config->getVal($label, env($label));
    }

}